package cn.funeralobjects.upms.entity;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.*;

/**
 * 用户序列号，用于检测用户信息，权限等是否已经被更新了
 *
 * @author FuneralObjects
 * Create date: 2020/4/21 1:13 PM
 */
@Entity
@Table(name = "t_user_auth_serial")
@Data
@Accessors(chain = true)
public class EUserAuthSerial {
    /**
     * 用户id
     */
    @Id
    private Integer userId;
    /**
     * 序列号
     */
    private String serial;

    @OneToOne
    @PrimaryKeyJoinColumn(name = "user_id")
    private EUser user;
}
